package pdai.jvm.a_深浅拷贝;

import lombok.Data;
@Data
public class Student implements Cloneable {
    private String studentId;
    private String studentName;
    private  Major major;

    public Student(String studentId, String studentName, Major major) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.major = major;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}

